package com.pz.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pz.gulimall.common.utils.PageUtils;
import com.pz.gulimall.product.entity.SkuImagesEntity;
import com.pz.gulimall.product.entity.SkuInfoEntity;
import com.pz.gulimall.product.entity.resultMap.SkuInfoResultMap1;
import com.pz.gulimall.product.vo.req.SpuSaveReqVo;
import com.pz.gulimall.product.vo.res.ProductInfoResVo;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * sku信息
 *
 * @author PZ
 * @email pzs@gmail.com
 * @date 2024-02-01 20:22:27
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveSkuInfo(SkuInfoEntity skuInfoEntity);

    PageUtils queryPageCondition(Map<String, Object> params);

    ProductInfoResVo queryProductInfo(Long skuId) throws ExecutionException, InterruptedException;

    void updateSkuEsModel(Long spuId);

    List<SkuInfoResultMap1> queryBatchBySkuIds(List<Long> skuIds);
}

